home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
bytesc88.arc
/
FPUTS.C
< prev
next >
Wrap
Text File
|
1987-10-04
|
384b
|
15 lines
#define NOCCARGC /* no arg count passing */
#include stdio.h
#include clib.def
/*
** Write a string to fd.
** Entry: string = Pointer to null-terminated string.
** fd = File descriptor of pertinent file.
*/
fputs(string,fd) char *string; int fd; {
while(*string)
if(fputc(*string++,fd)==EOF) return(EOF);
return(0);
}